package com.henrybit.util;


import org.apache.log4j.PropertyConfigurator;

import com.henrybit.exception.LogException;

/**
 * 日志工厂类<br>
 * @author henrybit
 * @version 1.0
 */
public class LogFactory {
	
	/**
	 * 初始化日志配置<p>
	 * @param config
	 * @throws LogException
	 */
	public static void init(String config) throws LogException {
		if(config == null || config.equals(""))
			throw new LogException(LogFactory.class+"日志初始化参数为空");
		PropertyConfigurator.configure(config);
	}
}
